package io.renren.modules.app.service.impl;

import io.renren.modules.app.dao.YcUserEducationDao;
import io.renren.modules.app.dao.YcUserExperienceDao;
import io.renren.modules.app.entity.YcUserEducationEntity;
import io.renren.modules.app.entity.YcUserExperienceEntity;
import io.renren.modules.app.service.YcUserEducationService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import javax.annotation.Resource;


@Service("ycUserEducationService")
public class YcUserEducationServiceImpl extends ServiceImpl<YcUserEducationDao, YcUserEducationEntity> implements YcUserEducationService {


    @Resource
    private  YcUserEducationDao ycuserEducationDao;
    //新增分页
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YcUserEducationEntity> page = this.page(
                new Query<YcUserEducationEntity>().getPage(params),
                new QueryWrapper<YcUserEducationEntity>()
        );
        return new PageUtils(page);
    }
    @Override
    public YcUserEducationEntity getEducationById(Integer id) {
        return ycuserEducationDao.getEducationById(id);
    }


}